package com.sky.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.AutoFill;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;

import java.util.List;

@Mapper
public interface DishFlavorsMapper extends BaseMapper<DishFlavor> {
//    @AutoFill(OperationType.INSERT)
    void addFlavors(List<DishFlavor> list);

    List<Dish> getDishListByCategoryId(Long categoryId);

    List<DishFlavor> getDishFlavorsByDishId(Long id);

    int deleteDishFlavorsByDishIds(List<Long> idList);

    List<DishFlavor> getDishFlavorsByDishIds(List<Long> ids);
}

